package cn.yotta.user.core.server.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @author wyaoyao
 * @date 2022/11/9 10:17
 */
@ConfigurationProperties(prefix = "yotta.user.captcha")
@Data
public class CaptchaProperties {

    /**
     * 验证码存储策略
     *
     */
    private String storage = "memory";

    /**
     * mock 图片验证码校验，默认为false; false表示不校验图片验证码的准确性
     */
    private Boolean enableMock = Boolean.FALSE;

    /**
     * 验证码有效时长, 默认60s, 单位:秒
     */
    private Integer expireTime = 60;


    /**
     * 验证码长度,默认4
     */
    private Integer captchaLength = 4;

    /**
     * 图片验证码宽度
     */
    private Integer imageWidth = 150;

    /**
     * 图片验证码高度
     */
    private Integer imageHeight = 50;
}
